from pygame import Surface
from lib.ZClass import ZClass


class ZPanel(ZClass):
    def __init__(self, surface, size):
        self.screen = surface
        self.image = Surface(size).convert_alpha()
        self.rect = self.image.get_rect()
        self.isRunning = False

    def draw(self):
        if self.isRunning:
            self.screen.blit(self.image, self.rect.topleft)
